package oop7;

/**
 * @author oldliu
 * @since 1.0
 */
public class Car {
    private String brand;//品牌
    private String type;//类型
    private int price;//价格
    private String color;

    //是否有拐弯灯光跟随功能
    private boolean gengsuidengguang;


    public static void main(String[] args) {
        Car c = new Car();
        c.setBrand("Baoma");
        c.setType("x5");
        c.setPrice(40);
        c.setColor("黑");
        Car c2 = new Car();
        c2.setBrand("上汽通用");
        c2.setType("五菱宝骏");
        c2.setPrice(9);
        c2.setColor("灰");
        c2.guaiwan();
    }

    public void start() {
        System.out.println(type + "点火启动了");
    }

    //所有的都有
    public void guaiwan() {
        System.out.println(type + "开始拐弯了，大灯跟着拐！");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
